<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板字符串</title>
    <script src="js/jquery-3.3.1.min.js"></script>
    <style>
        .red{
            color: #f00;
        }
    </style>
</head>
<body>


<div id="cont"></div>

<script>
    console.log(`this is 反撇号`);
    console.log("this is 双引号");
    console.log('this is 单引号');

    var age = 3;
    console.log("I'm "+ age +" years old !");

    $("#cont").html(`
        <div>
            <h1 class="red">这是h1标签</h1>
            <h2>这是h2标签</h2>
            <h3>这是h3标签</h3>
        </div>
    `);


</script>
</body>
</html>